package com.happystudy.mapper;

import com.happpystudy.model.course.Course;
import com.happpystudy.model.course.CourseKey;
import com.happpystudy.model.course.Course;

import java.util.List;

public interface CourseMapper {
    int deleteByPrimaryKey(CourseKey key);

    int insert(Course record);

    int insertSelective(Course record);

    Course selectByPrimaryKey(CourseKey key);

    int updateByPrimaryKeySelective(Course record);

    int updateByPrimaryKey(Course record);

    List<Course> selectCoursesByUserId(Integer userId);

    List<Course> selectCourseByCourseIdAndUniId(CourseKey courseKey);
}